{template('../public/header.html')}

<!--会员列表-->
<div class="pad_10">
	<form name="searchform" method="get">
		<table width="100%" cellspacing="0" class="search_form">
			<tbody>
				<tr>
					<td>
						<div class="explain_col">
							<input type="hidden" name="m" value="admin" />
							<input type="hidden" name="c" value="{:MODULE_NAME}" />
							<input type="hidden" name="a" value="index" />
							<input type="hidden" name="menuid" value="{$menuid}" />
							&nbsp;关键字 :  <input name="keyword" type="text" class="input-text" size="25" value="{:Trim(App.Req("keyword"))}" />
							<input type="submit" name="search" class="btn" value="搜索" />
						</div>
					</td>
				</tr>
			</tbody>
		</table>
	</form>
	<div class="J_tablelist table_list" data-acturi="{:u('ajax_edit')}">
		<table width="100%" cellspacing="0">
			<thead>
				<tr>
					<th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
					<th width=60><span data-tdtype="order_by" data-field="id">ID</span></th>
					<th align="left">歌曲名称</th>
					<th width="180" align="left">歌手(作家)</th>
					<th width="100" align="center"><span data-tdtype="order_by" data-field="cate_id">分类</span></th>
					<th width="40"><span data-tdtype="order_by" data-field="status">状态</span></th>
					<th width="80">管理操作</th>
				</tr>
			</thead>
			<tbody>
			{$rs type='rs' pagesize='0' }
				<tr>
					<td align="center"><input type="checkbox" class="J_checkitem" value="{$rs('id')}"></td>
					<td align="center">{$rs('id')}</td>
					<td align="left"><span data-tdtype="edit" data-field="song_name" data-id="{$rs('id')}" class="tdedit">{$rs('song_name')}</span></td>
					<td align="left">{:M('music_artist')().find(rs('artist_id')).getField('artist_name')}</td>
					<td align="center">{$rs('cate_id')}</td>
					<td align="center">
						<img data-tdtype="toggle" data-id="{$rs('id')}" data-field="status" data-value="{$rs('status')}" src="__IMG__/admin/toggle_{if rs('status')=1}enabled{else}disabled{/if}.gif" />
					</td>
					<td align="center">
						<a href="{:U(MODULE_NAME & "/edit?id="& rs("id") &"&menuid="& menuid)}">编辑</a>
						| <a href="javascript:void(0);" class="J_confirmurl" data-uri="{:U(MODULE_NAME & "/delete?id="& rs("id"))}"
						data-acttype="ajax" data-msg="确定要删除“<font color=blue>{$rs('song_name')}</font>”吗？">删除</a>
					</td>
				</tr>
			{/$rs}
			{@empty for='rs'} <tr style="height:30px;"> <td align="left" colspan="15">&nbsp;&nbsp; <font color=red>暂无数据！</font></td> </tr>{/@empty}
			</tbody>
		</table>
		<div class="btn_wrap_fixed">
			<label class="select_all">
				<input type="checkbox" name="checkall" class="J_checkall">
				全选/取消
			</label>
			<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax"
			data-uri="{:U(MODULE_NAME & '/delete')}" data-name="id" data-msg="您确定要删除吗？" value="删除" />
			<div id="pages">
				{@pager data='rs'}
					{$pager("total")} 条记录 {$pager("no")}/{$pager("count")} 页 {if pager("count")>1}{$pager("bar")}{/if}
				{/@pager}
			</div>

		</div>
	</div>
</div>
{template('../public/footer.html')}
</body>
</html>